package com.kube.design.bridge;

/**
 * @author q.zhangr
 * @version 1.0.0
 * @date 2020/7/20
 */
public class Client {


    public static void main(String[] args) {

        //抽象和实现分开

        MessageImplementor implementor = new MessageSms();

        AbstractMessage commonMessage = new CommonMessage(implementor);

        commonMessage.sendMessage("加班申请速批", "李总");

        implementor = new MessageEmail();

        AbstractMessage urgencyMessage = new UrgencyMessage(implementor);

        urgencyMessage.sendMessage("加班申请速批", "李总");

    }

}
